<!DOCTYPE html>
<html lang="ar">

<?php 
$session = $this->session;
		$login_state =$this->session->userdata('login_state');
if (!$login_state) 
		{
		//// go to login
		$this->load->view('welcome_ctr/login');///rani hna
		}
		else
		{		
		$user_name = $this->session->userdata('user_name');	
		$year=$this->session->userdata('annee');
		$user_group = $this->session->userdata('user_group');	
		$msg=0;
		
		if($user_group=='admin')
		echo('<span style = "float: left; direction: rtl;position: absolute;top: 0; background-image:url('.base_url().'/assets/images/banniere.jpg) ; width:100%; height:80px" >  السنة : '.$year.' مسجل كـ '.$user_name.'<br>
		<a href='.base_url('/session_ctr/logout').'>خروج</a> <br><br> 
		<strong style=" margin-right:80%;color: red">
		<a href='.base_url("/budget_ctr/load").' style="color: red; font-size:120%; border:1px solid black;">   الرئيسية  </a>
		<a href='.base_url('/compte_ctr/').' style="color: red; font-size:120%; border:1px solid black">  خصائص الحساب  </a> </strong>
		<a href='.base_url("/compte_ctr/new_compte/$msg").' style="color: red; font-size:120%; border:1px solid black;">    حساب جديد  </a>
		 <br><br><br><br></span><br><br><br><br>');
		
		else
		echo('<span style = "float: left; direction: rtl;position: absolute;top: 0; background-image:url('.base_url().'/assets/images/banniere.jpg) ; width:100%; height:80px" >  السنة : '.$year.' مسجل كـ '.$user_name.'<br>
		<a href='.base_url('/session_ctr/logout').'>خروج</a> <br><br> 
		<strong style=" margin-right:85%;color: red">
		<a href='.base_url("/budget_ctr/load").' style="color: red; font-size:120%; border:1px solid black;">   الرئيسية  </a>
		<a href='.base_url('/compte_ctr/').' style="color: red; font-size:120%; border:1px solid black">  خصائص الحساب  </a> </strong>
		
		 <br><br><br><br></span><br><br><br><br>');
		
		
	
		}
		
?>
<br><br>
</html>